import java.util.concurrent.Semaphore;


public class Disk {	
	public static String[] address = new String[Driver.DISK_SIZE];
	public static Semaphore s = new Semaphore(1, true);
	public static void write(int add, String data) {
		try {
			s.acquire();
				address[add] = data;
			s.release();
		} 
		catch (InterruptedException e) {
			e.printStackTrace();
		}
		
	}
	
	public static String read(int add) {
		return address[add];
	}

}
